package com.lgz.lgzapiinterface;

import com.lgz.lgzapiinterface.client.LgzApiClient;
import com.lgz.lgzapiinterface.model.User;

public class main {
    public static void main(String[] args) {
        String accessKey = "lgz";

        String secretKey = "qwertyuiop";

        LgzApiClient lgzApiClient = new LgzApiClient(accessKey,secretKey);
        User user = new User();
        user.setUsername("lgz33333333");

        String demo1 = lgzApiClient.getNameByGet("lgz11111111");
        String demo2 = lgzApiClient.getNameByPost("lgz2");
        String demo3 = lgzApiClient.getUsernameByPost(user);

        System.out.println(demo1);
        System.out.println(demo2);
        System.out.println(demo3);
    }
}
